From: Matthieu Gallien Date: Thu, 27 Mar 2025 15:40:07 +0000 (+0100) Subject: clean up some no longer needed logs X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2^2~37^2~1 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com///%22http:/www.example.com/cgi/%22https:/www.github.com/?a=commitdiff_plain;h=937e1df1f52928745d734704cbb1ad2d9714e71b;p=nextcloud-desktop.git clean up some no longer needed logs Signed-off-by: Matthieu Gallien --- diff --git a/src/common/checksums.cpp b/src/common/checksums.cpp index 5787f2d26..77291d09d 100644 --- a/src/common/checksums.cpp +++ b/src/common/checksums.cpp @@ -201,7 +201,7 @@ QByteArray ComputeChecksum::checksumType() const void ComputeChecksum::start(const QString &filePath) { - qCInfo(lcChecksums) << "Computing" << checksumType() << "checksum of" << filePath << "in a thread"; + qCDebug(lcChecksums) << "Computing" << checksumType() << "checksum of" << filePath << "in a thread"; startImpl(filePath); } diff --git a/src/common/syncjournaldb.cpp b/src/common/syncjournaldb.cpp index 870b22f8b..0813c12a1 100644 --- a/src/common/syncjournaldb.cpp +++ b/src/common/syncjournaldb.cpp @@ -1711,13 +1711,11 @@ static void toDownloadInfo(SqlQuery &query, SyncJournalDb::DownloadInfo *res) res->_valid = ok; } -static bool deleteBatch(SqlQuery &query, const QStringList &entries, const QString &name) +static bool deleteBatch(SqlQuery &query, const QStringList &entries) { if (entries.isEmpty()) return true; - qCDebug(lcDb) << "Removing stale" << name << "entries:" << entries.join(QStringLiteral(", ")); - // FIXME: Was ported from execBatch, check if correct! for (const auto &entry : entries) { query.reset_and_clear_bindings(); query.bindValue(1, entry); @@ -1831,7 +1829,7 @@ QVector SyncJournalDb::getAndDeleteStaleDownloadInf qCDebug(lcDb) << "database error:" << query->error(); return empty_result; } - if (!deleteBatch(*query, superfluousPaths, QStringLiteral("downloadinfo"))) { + if (!deleteBatch(*query, superfluousPaths)) { return empty_result; } } @@ -1965,7 +1963,7 @@ QVector SyncJournalDb::deleteStaleUploadInfos(const QSet &keep) } const auto deleteUploadInfoQuery = _queryManager.get(PreparedSqlQueryManager::DeleteUploadInfoQuery); - deleteBatch(*deleteUploadInfoQuery, superfluousPaths, QStringLiteral("uploadinfo")); + deleteBatch(*deleteUploadInfoQuery, superfluousPaths); return ids; } @@ -2033,7 +2031,7 @@ bool SyncJournalDb::deleteStaleErrorBlacklistEntries(const QSet &keep) SqlQuery delQuery(_db); delQuery.prepare("DELETE FROM blacklist WHERE path = ?"); - return deleteBatch(delQuery, superfluousPaths, QStringLiteral("blacklist")); + return deleteBatch(delQuery, superfluousPaths); } void SyncJournalDb::deleteStaleFlagsEntries() diff --git a/src/gui/folderwatcher.cpp b/src/gui/folderwatcher.cpp index fc7d05d68..e8bed199b 100644 --- a/src/gui/folderwatcher.cpp +++ b/src/gui/folderwatcher.cpp @@ -223,8 +223,6 @@ void FolderWatcher::changeDetected(const QStringList &paths) _lockedFiles.insert(checkResult.path); } - qCDebug(lcFolderWatcher) << "Locked files:" << _lockedFiles.values(); - // ------- handle ignores: if (pathIsIgnored(path)) { continue; @@ -233,9 +231,6 @@ void FolderWatcher::changeDetected(const QStringList &paths) changedPaths.insert(path); } - qCDebug(lcFolderWatcher) << "Unlocked files:" << _unlockedFiles.values(); - qCDebug(lcFolderWatcher) << "Locked files:" << _lockedFiles; - if (!_lockedFiles.isEmpty() || !_unlockedFiles.isEmpty()) { if (_lockChangeDebouncingTimer.isActive()) { _lockChangeDebouncingTimer.stop(); diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index 24c86a73b..931911631 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -228,7 +228,6 @@ void SyncEngine::deleteStaleDownloadInfos(const SyncFileItemVector &syncItems) _journal->getAndDeleteStaleDownloadInfos(download_file_paths); for (const SyncJournalDb::DownloadInfo &deleted_info : deleted_infos) { const QString tmppath = _propagator->fullLocalPath(deleted_info._tmpfile); - qCInfo(lcEngine) << "Deleting stale temporary file: " << tmppath; FileSystem::remove(tmppath); } }